ensure seed.js script exits properly