No open files

Fixes the behaviour of new windows creating empty documents and having stale empty windows left around.