Implementation of 'stopped' event moved to nn_fsm class

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>