i'd like to be able to trap a SIGTERM from an application written in erlang+yaws so i can dump some state to disk when that happens. is there a way to do this? searching the net brought up two similar questions with no responses. thanks.