Removing objects pool I kept for keeping objects alive
Atomic just in case.
Handle Search cancelling in scripting
s/vmObject/object for consistency
Prevent crash when closing a document in middle of a search
Prevent document closing crash when searching in a script.

Weakifying more document window controller references