Use async thread for receiving write replies
Fix async writing and cleanup
Use async io for receives too
Add FP command for async read and fix loop count