start implementing error handling for socket shell