cleanup of responsibilities of the php error object