PDFs finally work, it also quits cleanly