Changed \Exception to Exception for older PHP versions.