Fixed bot not shutting down.