more specific exception handling around ProfitLib