Added callback to retrieve response data, otherwise socket won't set to free.