Fix critical issue in WorkDuration
Add some missing close()