The door seemed closed though when he killed his character off at the end of Logan. It was the final chapter and done and dusted. Tobey never had an ending as such. Nothing about Spiderman 3 suggested there couldn't have been a Spiderman 4 had they wanted to do another. As soon as NWH was announced, Tobey was expected, even if Feige refused to admit it.
The closure of Jackman in Logan would be akin to RDJ coming back as an AU Tony Stark. It's an actor and character that people had said their goodbye to and put to rest suddenly coming back.