Fix threading issues in messages. Promisify better.