Fixed OSX bug
Puts error messages in GUI instead of console