Added _very_ experimental signal handling with closures.