Merge exceptions and improve their messages