Avoiding system exit