Remove all calls to printStackTrace() and log relevant errors