Print filename properly.
Remove extra ref of http connection on error.