[sr-dev] git:3.1: core: at shutdown, first call the destroy module functions then free module exports structure