Introduced the OnError task

and removed the ContinueOnError property in the build script.