safely close the link buffer after extraction