GRAILS-11494 restore unix terminal settings in shutdown hook
Merge branch '2.3.x' into 2.4.x