Sometimes you realize in the constructor that some criteriums are not fulfilled. Maybe there is no network access or something similar. The problem is that you can’t run the normal Close() for the window. One simple way of getting around this is to create an EventHandler for the Loaded event because when that event is