The matching method to the Startup method, Shutdown is called at the beginning of a FVTerm v4.0 Application Pool being taken down during an IIS reset or a recycle event (either requested directly or indirectly through an update to the web.config file).
This provides the ability to save any session data that is in memory to disk for restoring during the next Startup method.
Example:
static public void Shutdown()
{
// Save any in-memory session data to disk
}