stream-ssl: Try to shut SSL connections down gracefully.