added support for new shutdown module hook