check that process.on is a function