bug fix mysql module releases the connection back to the pool on error