Merge "Avoid logging functions from signal handler."