add error middleware #55

Sorry Allen!