Update Error Handler to give stack trace

Changed throw to wrap exception and give valid stack trace.
Merge pull request #5 from duereg/patch-1

Update Error Handler to give stack trace