add try..catch block.