Confirm before leaving perform mode.
Better socket handling.