Give proper exit code in setup script