Block window unloads when the notebook has not been saved.