resolve #270: catch shell errors

@kevgo
If you look at #270, the error messages when there is a shell error includes printing where what file the error occurred in.