This will help catch and log errors that were previously showing as "No error handlers are registered"