closing access to application