Fixed bug of prints inside of catch block.