Add error handling on send and receive. Add flush by line.
Add a command for setting the fsm as a file on the node.