add thread which receives the event generated when the communication port is disconnected.