try to catch stream errors (like ping timeout) and continue instead of dropping to debugger. hopefully this will make the bot a little more robust