Delete socket if connection fails.
Added sign with private key to TransactionBuilder.