If we're erroring we don't need to indent
Add runWindow function to obfuscate some common practices