tidy up disconnection