Prevent panic caused by sending to closed signal channel.