Don't worry

I used to boil the tea for a while to evaporate off organic solvents (e.g. naphtha). This is dangerous and should be done outside or in extremely well ventilated area. Boiling bases is dangerous in itself.
So what I do now is to first neutralize the basic soup with HCl, it thickens and might have to be diluted, then I boil it and then let cool down and finally flush.
Make sure to run some tap water for a while to clean up pipes. It also helps to dilute the stuff.
If you use sodium or potassium hydroxide, these are of least concern and easily to dealt with - it is used as drain cleaner as others said.
After neutralization with HCl, NaOH turns into mere table salt.