TMP
Do not invoke shutdown twice when run as a plugin.