Close location list when deleting a buffer