Clean up DesignScript resource when shutting down