Changed Window utility methods to throw Exceptions