When I press Ctrl-D in a 'term', the buffer stays open with the text "Process terminal finished".
How can I make this buffer close instead of staying open with this text displayed?
Note, this is similar to this question: How to automatically kill a shell buffer when the shell process exits however the solution there didn't work for 'term'.