fixed issue #50; user program hang after call to shutdown()
https://github.com/Pi4J/pi4j/issues/50