Signal handling, error handling.