Turn ProxyCommand into a context manager