Resolve problem with monitor test failing

Also added purge() to socket