closed araqne/issue#145. modified to check logger is running.