added exception handler to the port agent client listener thread