Fix in MapdbLayer: when closing DB, set maps to null.