Driver.close() shows up an error for chrome browser current window close

i am trying to close current window in chrome browser am getting error .
i used driver.close( ); it is not working in 2.5.4 appium please suggest me a solution

you should look into Working with windows and tabs | Selenium
Closing a window or tab