Fixed closing of open pipes after use (driver.quit now performs pipe.close) [Issue #310]