Fixed exception in UDP server communicator when exiting.