[MERGED] Code stops working after unplugging USB cable (MEGA + sensor shield)

This topic has been merged into Code stops working after unplugging USB cable; troubles uploading.