Weird exception raising behaviour in Windows observed. An uncaught exception within the def main() function was not caught by the "try: main except:" block. Added a seperate try: ... except: raise block within the main, which seems to catch and re-raise properly