Add net reader and writer shutdown functions.