Make ignoring of SIGHUP optional (disabled by default)

This is required to prevent process leak when the process spawned by pexpect does not explicitly kill its subprocesses and those subprocesses have NOT set handler for SIGHUP. (I.e. they rely on default behavior of SIGHUP)