Restart api to make ensure consistent state. Issue: medic/medic-webapp#652