make shutdown timeout configurable

this patch makes the shutdown timeout configurable and sets the default timeout to 60 seconds, so server processes which take a few seconds to shutdown gracefully get a chance to do so