More error handling

also upgraded project to VS2013, with VS2010 PlatformToolset to maintain
Shroud lib compatibility