added loggin wuth exit signal number