(WIP) working on closing the listener after receiving a completed message