Handle Rugged::OSError exception

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>