Improve signal handling.

Fix a bug occurring when trying to kill crawler between page downloads.