libdmon.py: sample code how to handle check timeouts. quite imperfect