implemented exit command