error handler closing connection now