Return 500 if error while writing (make sender to queue records)