Use MODULE_SUFFIX_STRING instead of $
Use shutdownGracefully instead of deprecated method