ApplyResult.terminate now takes signal argument