Remove prints outside of try-catch blocks.