Fix warnings.
Simplify format strings.
Test signal handling.