cleanup the logger