fixed close application on closing alert