coding styling
listen to `exit` event from child process