Address issue when the command executed doesn't end with a \n
Fix error handling
0.1.4