Added enter/exit methods to Client/Server, so the with statement can be used with those objects