Implement exit command and extend Backend