Properly use promises to render console

Fixes #1662 and #1664