delete close connect