Exiting send_request when fp is empty

Exiting send_request when fp is empty so the while loop doesn't go forever.