Fixes #56 (send should throw an error if disconnected)