Prevent double close from polluting error logs