added further exit function, so the board restarts after reset