Arduino Nano acting strainge when disconnecting from PC

Search for arduino mosfet led. Just make sure that the mosfets are logic level (mos)fets.

One of the first hits