readfile: Handle failure in open()

Signed-off-by: Saggi Mizrahi <ficoos@gmail.com>