Add a listener for any exceptions thrown from the console