Fix QIODevice errors in ANTLogger

Darren Hagues logging code causes issues since the state
of the logger is not reset on close.