add shutdown timeout (default 500ms) to master