Close all open sessions on undeploy