close connection after disconnect notice