Added some hooks to destroy the scopes when the Vaadin service is destroyed.