Cleanup: Improve error reporting for invalid coroutines