So I\'m attempting to build something that calls an API when a user closes a page. I was originally using OnClose but due to that not working in Safari, and Chrome sometimes I s