Consistent use of printStackTrace() in all catch cases

Also add one more catch, so that the error shows up
(via the printStackTrace()) in the logs.