our state changes :param bool spawn: calls function via a new thread if **True**, otherwise it's part of the connect/close method call NŠ