Fixed issue where closing the packet queue wouldn't interrupt threads waiting on next()