bug fixes

- replace unix functionality when killing the run
- handle error when data is NaN in PDF
- When using subfolders, allow the run to continue if the subfolders
already exist
- Enable printing stack trace again in util when processing data