Log the uid and pid when receiving a SIGTERM.

Review: https://reviews.apache.org/r/24700