adding error handling to select build tasks