Catch key not found exception

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>