Added exit signal handle