Handling exit event of phantom child process in order to stop server after Phantom crashes.
Expose phantom.on() method to the phantom proxy for greater flexibility.