Fixed cancel button shutdown exception.