make writing to the status line a bit more failsafe