add explicit quit calls to avoid hangs on some Lisps