Stop Find window showing an NSSavePanel on ⌘S
Log errors from each call in swap_and_unlink
Ensure grammar is retained during parsing

Since parsing is done in a separate thread, and it works with pointers, we need to ensure that the grammar is retained for at least as long as the thread lives.