added default printStackTrace call when an exception is caught