nitdoc: Fix bug: add a function to close all comments which are edited
when we close the session