Handle timeout in fsm

Signed-off-by: Olaf Hering <olaf@aepfle.de>