add remove_connection/2 function.