* restore term when receive signal add `CaptureExitSignal` to capture exit signals and exit gracefull(disabled by default) * update deps