Update dotNET executable to return the exit code of the casper instance

Fixes #757 and the false positives on #754.