Made error handeling a bit pretier, expecially with E_STRICT turned on.