added uncaughtException to terminate signal