Fix Windows PTY shutdown crashes

Fixed crashes on Windows when terminating terminal sessions by removing unsupported signal arguments from PTY kill calls. Windows terminal emulation doesn't support signals like Linux does, so a new helper function now drops the signal on Windows while preserving graceful vs. force-kill behavior on other platforms.