made the getFriends exception wider as to catch all kinds of errors