How to check whether app driver close or not in android appium

I am using java with selenium webdriver.
How can i check?