don't return 0 in case of premature quitting