Fix for slurmd memory leak at shutdown