Moved beforeSend from event to happen before send to handle 500s better