Return StatusError to bubble up build exit code