Bugfix

Bugfix where a mysql connection timeout caused an exception