Tunnel: Make sure error is returned if there was any when establishing connection.
Fixed API endpoints in remote.