Added Application is_active() and Close() methods

Added Application is_active() and Close() methods