Medical emergencies prompted plane to return to gate