handle the connection closed after the db is dropped.