Check that process.exit exists