Added logging of application data on exception