Handled exceptions

Handled YUI Compressor exceptions.