Add panic handlers to bot.

* Fix #21
Merge pull request #32 from zamN/master

Add panic handlers to bot.