Added Handling of PHP Errors, Exception and Fatal Errors