shutdown fixes for the shared pool