initialize last_containers to empty list

Only call `containers` in `begin`/`rescue` block