Shutdown bug fixed.