Created by: cbusbey
fixes race condition where a message can be received or sent just outside of session time.