Fix REPLY handling in SimpleNetworkWrapper. Closes  #440