tweak to test
try to handle exceptions in the callbacks - defaults to cleaning up the nif then throwing
Merge branch 'master' of https://github.com/mdevilliers/erlang-mesos