Added 'error' event for Curl + Curl now deletes the just created 0 byte file when a download fails.