Refacto on signal handler

Signed-off-by: chatgris <jboyer@af83.com>