Handle some variables in case of singal interrupt