stablized moco server shutdown from #75, thanks for @lordofthejars