Add capture truncation test.
Add timeout to capture close method.

Also start implementing packet injection method.