INT-3305 SFTP Connect Error Polishing

* Add code to test to wait for server to start
* Avoid NPE when trying to close a Sesion that was never open