Remove Application keyword not working

I cannot remove the application with the keyword Remove Application in robot framework. I receive an error stating ‘WebDriverException: Message: undefined status object’. Any help would be greatly appreciated.

You’ll need to post the code.