Create shutdown listener