In convention, we are raising error if fail and return result if succeed, please check the other methods of class ShellSession.