shouldn't we log something here as a consequence of the error?