MIRTH-2881: Destroy connections after they are made for the "Test Write" service.
MIRTH-2881: Made the same change for the Document Writer service as well.