[fix] On bundle errors, only end the response once