Removed IllegalStateExceptions from Window