Exit gracefully if we get a TERM signal.  Set default for parent pid so we aren't comparing undefined values.