Close inventory on teleport. FIXES BUKKIT-3021

The previous behaviour was to only close the inventory screen in case of a teleport that starts in a different world than it ends. This PR simply moves the inventory closing code so it works without regard for the start and end world.

Attached leaky report:
https://bukkit.atlassian.net/browse/BUKKIT-3021