Fixes in signal handling.