Bug/return and suppress unlink

Fix for #1016 after help from https://github.com/JoostK

Returning and suppressing ```unlink()```, so you can do react to an error without outputting it.