Catch unauthorized exceptions, always cleanup temporary files