Cleanup of command