moved crash to end of execution