Also, if you have an error-indicator available after an operation, check that indicator and die if something is wrong ... unless you have an option to tell the package to throw-up for you. That's sometimes the only way that you can be aware that something has failed to work.