fix log closed too soon