handle mimosa module errors appropriately