Arduino Uno hangs and get inaccessible