Fix waitForMessage() to always throw when the connection is closed
Summary: See D2663. Currently, this method sometimes returns implicit null and sometimes throws on a closed connection. Make it always throw.
Test Plan: Reasoned about program behavior.
Reviewers: csilvers
Reviewed By: csilvers
CC: aran
Differential Revision: https://secure.phabricator.com/D2676