Implimented shutdown, needs tested on Pi