[#181][WIP] generalized remove_connection method

@AmrARaouf