fix: flushing at exit

+ flushing delay raised to 5 sec's