This may end up being a bit redundant, but it's just to ensure that the packet buffer is free before connecting.