Throw exception when a non locking script cannot be generated