Adding server shutdown trigger