That is for good error handling while programming
While scripting, a simple
 Code:
On Error Goto blablabla

could help to write a simple error handler and clean up possible open files or data etc...