close connection.