Catch uncought exception and provide appLog functionality.