lockfile handling more robust
lockfile handling more robust

updated checks regarding existence of notes lockfile
and catch exceptions on closing

kekh/mikidown,ShadowKyogre/mikidown,ShadowKyogre/mikidown,ShadowKyogre/mikidown,kekh/mikidown,kekh/mikidown