more error prone connect and disconnect