Only create a single instance of a SSH client and reuse it for all SFTP sessions. The client is stopped at the end of the build.