handle mysql server timeout