Added causes to raise calls in error case

Otherwise the original stack trace get lost.