Fixed the cache connection error handling

Based on bug report in  http://www.ps3mediaserver.org/forum/viewtopic.php?f=6&t=15760