cleanup commit before trying send/recv