CLI exits with error in case of a timeout

Refs grnet/kamaki#78