Added try-catch when loading proc. definition