In IE I used the following AJAX callback in the beforeunload event handler. Now using MS Edge the AJAX will not fire.
window.addEventListener("beforeunload", function(event) {
    stopTimer();
    $.post("/LabelPrintingWebApp/InitialControllerServlet",
    {lifecycle:"filecleanup",
    source:0},'json');
});