fix CaptureSignal func

CaptureSignal: return an error when cannot get numerical value