Moved wrapped_socket_patch to where it was needed. Perform all jobs