make it easier for remoto users to catch execnet exceptions
create a check function to return stdout,stderr, and exitstatus