Raise IoRedirectionError on failed redirection
Removed shell name from exit command
PEP8 formatting changes
Return error number when system command fails
Removed on_connect, disconnect, send, recv functions