Write that communicate must be called otherwise their can be bug if the stdout/stderr OS buffer is filled.