Pass container option.
add simple handshake lock to socket