GRAILS-11494 restore unix terminal settings in shutdown hook
Merge remote-tracking branch 'origin/2.3.x' into 2.3.x