adjust logical when process got an uncaughtException event #262

Prevent process exit and print a stack trace when encounter
uncaughtexception if there is other listeners on `uncaughtException`
event.