improved closing application once more