Fix warning check

Based on #5.

This fixes the issue where the sinkmanager would wait for timeout event upon error.

It brakes some tests but I think it is a good thing. I'll try to fix them during the weekend.