Ignore furthur messages after entering terminate state

As per #1633