added sleep before moving and an exception catching, due to a suspicious crash (possibly file was moved too early)