catch close connection error