[api] add restart method and restart on_inactivity instead of throwing an error