Sure but you missed to add sys.exit(). Now we would always run the jenkins daemon.