I've noticed this behavior since upgrading to NC 20.0.0 Before that, it used to close the document as it is supposed to.