bunch of fixes in handling ruby exceptions and calling modules in YCP namespace