Updated Twig events to add onShutdown()