close the connection when there is an error.. always