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