I think Lift-y's way of doing this with LiftRules.unloadHooks.
This is not well documented (AFAIK), but if you look in the Lift source code, you will see that when LiftServletis destroy()ed, the functions defined in are executed LiftRules.unloadHooks.
unloadHooks RulesSeq append prepend, , , . , bootstrap.liftweb.Boot.boot - :
sshDaemon.start()
LiftRules.unloadHooks.append( () => sshDaemon.stop() )
(, SSH-.)
100% , LiftServlet.destroy() , sbt web-plugin container:restart - Jetty, Lift, container:stop .