call process.exit after finishing running tests