Fixed flatnesstool mouse grabber issue on closing the tool