Added application restart to webapi