Fix forget_connection() and mark_connection_unused(),