Register shutdown hook also for vomses webapp.