Comment and changed behavior to also make sure OSX doesn't exit when running with no ui