added missing shutdown handler registration