Fixed a Simple Client termination issue