We don't want to try to send our beforeDisconnect script if we aren't properly connected, as that will severely delay Disconnect execution, so we now limit that to operational states and thus allow a quick(er) connection abort during auto detection or connection attempt.