Do not depend on mapsforge in non-maps related classes

This feels like an inversion of dependencies to depend on mapsforge in
non-maps related classes. As closeQuietly() is useful, we can import it
into our utility class without requiring this dependency.