added auto-quit to non-python version