Reconnecting the pump leads to a Serial Exception in the pyserial libary used by the MtecMod objects PUMP1_serial & PUMP2_serial. The instance function raising the error is waitResponse, but the problem likely lies within the function connect() which is unable to check if the connection was successfully established.