fix freezing of shell after crash