Better error handling when handling errors