Linting. Fix a panic when tring to write a closed bot.socket