Is there an option to execute javascript file only on plugin deactivation

Is there an option to execute javascript file only on plugin deactivation