Fixed remove friends bug, error handling, etc