startup : detach opened notes

First, this is more logical.
Second, this fixes 723999