Added debug to chest close event