Accept either a connected or a completed state
Bump version to 4.0.0