fix whitespaces
use passed graceful_shutdown as timeout