Prevent an error during shutdown cleanup