Updated .gitignore with VC files
improved DeviceContext error handling