Network: Add disconnect function
Network: Fix connect function return value

Function previously returned a match object instead of the token value