Fixed memory leak and lack of file log rotation.
Fixed memory leak and lack of file log rotation.

njenan/mountebank,nassimkirouane/mountebank,njenan/mountebank,p-equis/mountebank,nassimkirouane/mountebank,bbyars/mountebank,njenan/mountebank,p-equis/mountebank,xue2sheng/mountebank,njenan/mountebank,nassimkirouane/mountebank,bbyars/mountebank,nassimkirouane/mountebank,p-equis/mountebank,xue2sheng/mountebank