Add more informative exception message
Replace debug statements with trace