Add capture `#isClosed` method.

This method can be used to check whether the underlying PCAP handle is
still active. Most capture methods won't work otherwise.