added sigHandler function

Signed-off-by: ricardo <klossricardo@gmail.com>