adding domain middleware
working spike using cluster and domain to gracefully shutdown and restart server