added default timeout for shutdown