Removed try/except, using subprocess.call instead of os.system. Write message to stderr. Added sys.exit with return codes, no problems with xbmc when doing that.