Exit handling with alarm