Detach session when auto-attaching