bugfix: PTSDK-1081 exception should be thrown before callback
Merge branch 'next' of github.com:01org/web-simulator into next