Reset script environment if setCallbackId fails