Fix checks on transfer status return and also check the return value of submit_transfer().