updated Main to take docroot and disabled shutdown hook pending proper impl