Added dispose for rayHandler