freeing connection