Set socket to non-blocking, prevents main thread hanging on ifdown