core: optionally send SIGHUP in addition to the configured kill signal

This is useful to fake session ends for processes like shells.