Added check in FileEncoder's destructor.
Added check in FileEncoder's destructor.

This check will force libprocess to fail fast if a file descriptor
is closed underneath it.

Review: https://reviews.apache.org/r/51511/

abudnik/mesos,jpeach/mesos,abudnik/mesos,andschwa/mesos,yuquanshan/customizedMesos,reneploetz/mesos,craimbert/mesos,reneploetz/mesos,jpeach/mesos,andschwa/mesos,yuquanshan/customizedMesos,chhsia0/mesos,reneploetz/mesos,dforsyth/mesos,dforsyth/mesos,Aman-Jain-14/customizedMesos,Aman-Jain-14/customizedMesos,Aman-Jain-14/customizedMesos,Aman-Jain-14/customizedMesos,reneploetz/mesos,dforsyth/mesos,craimbert/mesos,verizonlabs/mesos,jpeach/mesos,andschwa/mesos,neilconway/mesos,gsantovena/mesos,abudnik/mesos,gsantovena/mesos,zmalik/mesos,Gilbert88/mesos,gsantovena/mesos,andschwa/mesos,yuquanshan/customizedMesos,jpeach/mesos,abudnik/mesos,chhsia0/mesos,asamerh4/mesos,abudnik/mesos,chhsia0/mesos,asamerh4/mesos,andschwa/mesos,gsantovena/mesos,craimbert/mesos,kaysoky/mesos,abudnik/mesos,craimbert/mesos,asamerh4/mesos,zmalik/mesos,yuquanshan/customizedMesos,chhsia0/mesos,verizonlabs/mesos,neilconway/mesos,zmalik/mesos,chhsia0/mesos,asamerh4/mesos,zmalik/mesos,kaysoky/mesos,verizonlabs/mesos,Aman-Jain-14/customizedMesos,neilconway/mesos,kaysoky/mesos,dforsyth/mesos,verizonlabs/mesos,Gilbert88/mesos,zmalik/mesos,zmalik/mesos,dforsyth/mesos,Gilbert88/mesos,verizonlabs/mesos,andschwa/mesos,kaysoky/mesos,Gilbert88/mesos,yuquanshan/customizedMesos,jpeach/mesos,Aman-Jain-14/customizedMesos,verizonlabs/mesos,kaysoky/mesos,zmalik/mesos,gsantovena/mesos,Gilbert88/mesos,asamerh4/mesos,neilconway/mesos,asamerh4/mesos,neilconway/mesos,abudnik/mesos,asamerh4/mesos,Gilbert88/mesos,dforsyth/mesos,craimbert/mesos,yuquanshan/customizedMesos,craimbert/mesos,yuquanshan/customizedMesos,reneploetz/mesos,Aman-Jain-14/customizedMesos,reneploetz/mesos,kaysoky/mesos,reneploetz/mesos,gsantovena/mesos,Gilbert88/mesos,craimbert/mesos,verizonlabs/mesos,dforsyth/mesos,chhsia0/mesos,neilconway/mesos,chhsia0/mesos,jpeach/mesos,kaysoky/mesos,gsantovena/mesos,andschwa/mesos,jpeach/mesos,neilconway/mesos