a few fixes one addition

- deleteLeftover will delete the outputDirectory
- enhanced error handling when hardlinking