Try-cacth block is added for spool error handling.