Bug fix: exit with error for failures.