Description
Makes sure that the timeout value is less than the maximum allowed (MAX_SHUTDOWN_TIMEOUT). Also clean up some code and make error codes more informative.
Makes sure that the timeout value is less than the maximum allowed (MAX_SHUTDOWN_TIMEOUT). Also clean up some code and make error codes more informative.