Error handling

- Fix error handling to exit correctly
- Switch to copying pictures when hardlinking fails