Finalize the router Session managment, Implement retry and complete the last files un parsed since the last shutdown