Fixed botcrashes due to unhandled exceptions