Added missing "return" in waitForResponse() when InterruptedException occurs
Rewrote faulty waitForResponse()