[fileDB] emit closing event so plugins can act on it
[seen] rewrite