Fix sourceAttach to respect callback return value.