Refactor socket creation/cleanup
Check for empty values in contracts for item_price/shipping_address