Old interface terminate/2 calls changed to modern terminate/3