Fix bug on bin mining, open riak connection on start process