Add a 'leave' op which cleanly closes the connection