Implemented IDisposable interface for the port client.