Reset pins when event is stopped

Signed-off-by: Martin Pahl <pahl@tnt.uni-hannover.de>