[#2644] Correctly release buffer when exception happens during send DatagramPacket or SctpMessage

Motivation:

When an exception is thrown during try to send DatagramPacket or SctpMessage a buffer may leak.

Modification:

Correctly handle allocated buffers in case of exception

Result:

No more leaks