No reason to double-bind the beforeunload event. Fixes #6113.