Updated disposal at editor closing time

Change-Id: I7118b66bcaee427125c4a60c9c9c0327f71b0f41
Signed-off-by: Olivier Constant <olivier.constant@thalesgroup.com>