# func_exit STATUS
# exits with a given status
# this function needs to be used, rather than 'exit',
# when a 'trap' handler is in effect that refers to $?.
func_exit() {
  (exit "$1")
  exit "$1"
}
