all streams exit cleanly; tests

resolves https://github.com/mapzen/pelias-openstreetmap/issues/5