Track sighandler info in replay too.

Resolves #786.

I originally tried to knock out #787 too, but gave up very quickly when things starting failing :).