fixed: prompt closing document when it doesn't saved