check exceptions for Popen (draft)