Make sure to close temporary files in acceptance tests