fixing raising runtime exceptions on defdebug
try-else implementation