Impement preventing of 'navigate.exit' event.