DeregisterScript
Deregisters the current script instance. If the script instance is not registered, this call does nothing.