Removing printStacktrace from catch block.