Modify handling of errors received in wget.

Add handling of interruption signals (SIGINT, SIGQUIT).
Ignore server-generated error codes (like 404).