added check if motioncorr crashes