Changed the deploy hook to post_deploy to prevent early termination of the bot.