Clean up command after finished