Reset to bootloader through sketch

From what I've read, it seems it can cause problems.