Added 2 more try-with resources block to avoid leaking handles

After submitting my previous pull request, I looked at other uses of the sendContent method that accepts a filechannel and to my understanding most of them leak.