program the board and then reset it and exit openocd

Signed-off-by: Juan Cecconi <juancecconi@gmail.com>