Fixes #3 - The state of SSL sockets was being lost after the first step in multi-step scripts.