Added some error checks

Tries to keep the bot running 24/7, unless the user sends a keyboard
interrupt. Will add more robust error checking later (or never)