fixed tailing logfiles
properly stop the filereader at exit