fix game not shutting down