Fix input loop not shutting down with the rest of the bot