Improved error treatment.
Removed unused files in PHP 5.3.