Add shutdown handler for SSHS.