Allows Signal.trap to have multiple callbacks