Fix SSL shutdown_transport function