fix signal handle safe