Added cleanup in case the client's crash

added remove_transaction() on state conn_closing