Cleanup save_formats() function, removing unused function argument.
Expand the size of paused_topic to equal help_topic_list.

paused_topic is filled by a copy from help_topic_list, so they should be
the same size.
Ensure fd is closed if connect() fails when trying a SOCKS4 connection.