Bug fixes/signal handling

Handle SIGTERM in messengers to allow for cleanup on kill

Miscellaneous additions towards getting file transfer to work.  Works
in C code but errors occur farther up the stack