Updated extension error handling.