Port juici2 signal handling to OSX