Found the cause for the hangs/crashes.. Used entry point enum instead of ray enum for miss program