Pigging and decoking units able to respond to emergencies