Flush batch inserter at end of import. Fixes #484