FIXED EXIT FUNCTION