MapWriter: added method to release thread pool (thanks Andre)