Fix handling of return values in handle()