Ms.Word closing bug fix

Signed-off-by: Piotr Carewicz <piotr.carewicz@googlemail.com>