n1k0/casperjs — pull request #765 by hexid (2013-12-14 04:40:06+00:00)
Title: Update dotNET executable to wait for the Casper process to exit

Add check to dotNET application to make sure the CasperJS process has exited before trying to return the exit code.
Source: http://stackoverflow.com/a/65070