added case for program crash