Fix pacparser support

- Properly decode pac file
- Handle errors
- Call pacparser.cleanup()

Fixes #119