Fix the threading and signal model.

Still todo: upstart and aerofs user.