Fixed some protocol bugs, made RELEASEALL connection-specific