Prevent network request thread from exiting prematurely on OS X