fixes #59 and fixes #60 exceptions on log decreasing or close fixed