Factoids: Make sure _http_running is assigned before being used.
Socket: Prevent crash caused when a signal is received while using select. Closes GH-477.