Logs: Minor clean up when leaving page