Adds timeout to Brooklyn shutdown hook
PR #1406 review comments