Improved error catching

a delay of 30 seconds is pretty common, so we changed the default value
to 45 (from 30).  Also the bot did not correctly fix itself after timing
out, so I fixed that as well. (and the reload function had the wrong
errorcode, leading it not to reload.