(#142) Adding try/catches

- In an attempt to correctly report an error in psake script, adding try/catch blocks
- Also, use the psake variable to return the correct exit code