Generator safety check before leaving page