Renamed close handler