make sure that e is logged before throwing it to the client.