Remove obsolete classes.
Log error if map db file is not present on close.