Re-enabled no closing of windows for random input but applies to main windows only