Clean up device current state